﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{

    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("OrderInfo", "OrderInfo", new string[] { "SHEETID" })]
    [KnownType(typeof(PrintOrderInfo))]
    public class PrintOrderInfo //: MB.Orm.Common.BaseModel
    {
        public PrintOrderInfo()
        {

        }
        private String _SHEETID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SHEETID", System.Data.DbType.String)]
        public String SHEETID { get { return _SHEETID; } set { _SHEETID = value; } }

        private String _APPORDERNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("APPORDERNO", System.Data.DbType.String)]
        public String APPORDERNO { get { return _APPORDERNO; } set { _APPORDERNO = value; } }

        private String _DISTRICT;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DISTRICT", System.Data.DbType.String)]
        public String DISTRICT { get { return _DISTRICT; } set { _DISTRICT = value; } }

        private String _CONSIGNEEADD;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CONSIGNEEADD", System.Data.DbType.String)]
        public String CONSIGNEEADD { get { return _CONSIGNEEADD; } set { _CONSIGNEEADD = value; } }

        private DateTime _RATIONDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RATIONDATE", System.Data.DbType.DateTime)]
        public DateTime RATIONDATE { get { return _RATIONDATE; } set { _RATIONDATE = value; } }

        private String _RATIONTIME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RATIONTIME", System.Data.DbType.String)]
        public String RATIONTIME { get { return _RATIONTIME; } set { _RATIONTIME = value; } }

        private String _PAYTYPE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PAYTYPE", System.Data.DbType.String)]
        public String PAYTYPE { get { return _PAYTYPE; } set { _PAYTYPE = value; } }

        private String _CONSIGNEE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CONSIGNEE", System.Data.DbType.String)]
        public String CONSIGNEE { get { return _CONSIGNEE; } set { _CONSIGNEE = value; } }

        private String _MOBILE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("MOBILE", System.Data.DbType.String)]
        public String MOBILE { get { return _MOBILE; } set { _MOBILE = value; } }

        private String _TOTALSALEVALUE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TOTALSALEVALUE", System.Data.DbType.String)]
        public String TOTALSALEVALUE { get { return _TOTALSALEVALUE; } set { _TOTALSALEVALUE = value; } }

        private String _TICKETNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TICKETNO", System.Data.DbType.String)]
        public String TICKETNO { get { return _TICKETNO; } set { _TICKETNO = value; } }

        private String _PRINTCOUNT;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PRINTCOUNT", System.Data.DbType.String)]
        public String PRINTCOUNT { get { return _PRINTCOUNT; } set { _PRINTCOUNT = value; } }

        //配送日期--年月日
        private String _RATIONDAY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RATIONDAY", System.Data.DbType.String)]
        public String RATIONDAY { get { return _RATIONDAY; } set { _RATIONDAY = value; } }

        private String _ORDERNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERNO", System.Data.DbType.String)]
        public String ORDERNO { get { return _ORDERNO; } set { _ORDERNO = value; } }

        private String _SHIPPINGNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SHIPPINGNAME", System.Data.DbType.String)]
        public String SHIPPINGNAME { get { return _SHIPPINGNAME; } set { _SHIPPINGNAME = value; } }

        private String _POINTNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("POINTNAME", System.Data.DbType.String)]
        public String POINTNAME { get { return _POINTNAME; } set { _POINTNAME = value; } }

        private Decimal _ORDERAMOUNT;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERAMOUNT", System.Data.DbType.Decimal)]
        public Decimal ORDERAMOUNT { get { return _ORDERAMOUNT; } set { _ORDERAMOUNT = value; } }

        private Decimal _TOTALQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TOTALQTY", System.Data.DbType.Decimal)]
        public Decimal TOTALQTY { get { return _TOTALQTY; } set { _TOTALQTY = value; } }

        private String _NOTE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("NOTE", System.Data.DbType.String)]
        public String NOTE { get { return _NOTE; } set { _NOTE = value; } }

        private String _RATIONTIME_NOTE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RATIONTIME_NOTE", System.Data.DbType.String)]
        public String RATIONTIME_NOTE { get { return _RATIONTIME_NOTE; } set { _RATIONTIME_NOTE = value; } }

        private String _BATCHNUMBER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("BATCHNUMBER", System.Data.DbType.String)]
        public String BATCHNUMBER { get { return _BATCHNUMBER; } set { _BATCHNUMBER = value; } }

        private int _BATCHSEQ;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("BATCHSEQ", System.Data.DbType.Int16)]
        public int BATCHSEQ { get { return _BATCHSEQ; } set { _BATCHSEQ = value; } }

        private Decimal _NEEDTOPAY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("NEEDTOPAY", System.Data.DbType.Decimal)]
        public Decimal NEEDTOPAY { get { return _NEEDTOPAY; } set { _NEEDTOPAY = value; } }

        private List<OrderInfoDetail> _SaleOrderItem;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SaleOrderItem", System.Data.DbType.String)]
        public List<OrderInfoDetail> SaleOrderItem { get { return _SaleOrderItem; } set { _SaleOrderItem = value; } }
        //明细中销售名和SKU名不同的数量
        private int _DIFFQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DIFFQTY", System.Data.DbType.Int32)]
        public int DIFFQTY { get { return _DIFFQTY; } set { _DIFFQTY = value; } }
    }
}
